﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;

namespace ExchangeHog
{
	public class Pop3Config : DependencyObject
	{
		public static readonly DependencyProperty ServerProperty =
			DependencyProperty.Register("Server", typeof(string), typeof(Pop3Config), new UIPropertyMetadata(null));
		public String Server
		{
			get { return (string)GetValue(ServerProperty); }
			set { SetValue(ServerProperty, value); }
		}

		public static readonly DependencyProperty PortProperty =
			DependencyProperty.Register("Port", typeof(int), typeof(Pop3Config), new UIPropertyMetadata(null));
		public int Port
		{
			get { return (int)GetValue(PortProperty); }
			set { SetValue(PortProperty, value); }
		}

		public static readonly DependencyProperty UseridProperty =
			DependencyProperty.Register("Userid", typeof(string), typeof(Pop3Config), new UIPropertyMetadata(null));
		public String Userid
		{
			get { return (string)GetValue(UseridProperty); }
			set { SetValue(UseridProperty, value); }
		}

		public static readonly DependencyProperty PasswordProperty =
			DependencyProperty.Register("Password", typeof(string), typeof(Pop3Config), new UIPropertyMetadata(null));
		public String Password
		{
			get { return (string)GetValue(PasswordProperty); }
			set { SetValue(PasswordProperty, value); }
		}

		public static readonly DependencyProperty SSLProperty =
			DependencyProperty.Register("SSL", typeof(Boolean), typeof(Pop3Config), new UIPropertyMetadata(null));
		public Boolean SSL
		{
			get { return (Boolean)GetValue(SSLProperty); }
			set { SetValue(SSLProperty, value); }
		}
	}
}
